package com.angel.bo.beans.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;


/**
 * 
 * 
 * @author ${author}
 * @email haibo.mei@ge.com
 * @date 2018-02-01 14:32:20
 */
@Table(name = "base_user")
@Data
public class User implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    /**
	 **用户ID
	 */
    @Id
    @GeneratedValue(generator = "JDBC")
    private Integer userId;
	
	
    @Column(name = "user_name")
    private String userName;
	
	
    @Column(name = "login_name")
    private String loginName;
	
	
    @Column(name = "gender")
    private Integer gender;

    @Transient
    private String genderName;
	
	
    @Column(name = "phone")
    private String phone;
	
	
    @Column(name = "address")
    private String address;
	
	
    @Column(name = "organization_id")
    private Integer organizationId;
	
	
    @Column(name = "state")
    private Integer state;
	
	
    @Column(name = "email")
    private String email;
	
	
    @Column(name = "create_user_id")
    private Integer createUserId;
	
	
    @Column(name = "modify_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifyDate;
	
	
    @Column(name = "create_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
	
	
    @Column(name = "password")
    private String password;
	
	
    @Column(name = "remark")
    private String remark;
	

}
